package com.cloud.mqtt.Emq;


/**
 * @program: mqtt
 * @description: mqtt配置类
 * @author: Cloud
 * @create: 2021/9/24 09:50:02
 */
public class MqttConfig {

    // 发布客户端地址
//    public static String pubHost = "tcp://icloud.getech.cn:";
    public static String pubHost = "tcp://127.0.0.1:";

    // 发布客户端地址
    public static String pubPort = "1883";

    // 发布客户端clientId
    public static String pubClientId = "pubClientId";

    // 发布客户端clientId
    public static String pubUserName = "pubUserName";

    public static String subUserName = "subUserName";

    // 发布客户端主题
    public static String pubTopic = "/v1/gechuang/0811/CVDtest/telemetry";

    //订阅客户端mqtt地址
//    public static String subHost = "tcp://icloud.getech.cn:";
    public static String subHost = "tcp://127.0.0.1:";

    //订阅客户端mqtt端口
    public static String subPort = "1883";

    // 测试和正式环境不要使用同样的clientId 和主题
    // 如果和正式环境一样，正式环境启动后，本地再次启动会频繁断开重连，订阅的主题一样的话，测试的数据正式环境也会消费这些数据
    // 订阅客户端的客户端id
    public static String subClientId = "subClientId";

    // 订阅客户端的主题
    public static String subTopic = "/v1/gechuang/0811/CVDtest/test";
}
